<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加商品分类</title>
<link href="<?=base_url()?>system/application/views/css/admin_edit.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="wrap">
<table id="mytable" cellspacing="0"> 
	<form method="post" action="<?php echo base_url()?>index.php/admin_goods/addsort">
    
    	<tr><th class="col" width="20%">添加的类别名</th><td class="row"><input type="text" name="title" /><br /></td></tr>
        <tr><th class="col">父类别</th><td class="row"><select name="sortid">
        			<option value="0">作为根类别</option>
        <?php foreach ($child as $value){?><option value="<?php echo $value->sortid?>">
		  	<?php for($i=0;$i<$value->deep;$i++){echo "^_^";} echo $value->title;?></option>
		  <?php }?>
        				
        			</td>		
        		</select>
        </tr>
             <tr><td colspan="2" text-align="center"><input type="submit" value="ok" /></td></tr>
    </form>
    </table>
    </div>
</body>
</html>